import axios from "./axios";

export interface ShoppList{
    cursor:string
    page_size:string
}
export interface loginList{
    username:string
    password:string
}

export const getShoppList=async()=>{
    const res=await axios.get('/api/mall/home/shop_spu/content_config/',{params:{
        cursor:1,
        page_size:20
    }})
    console.log(res.data.data);
    return res.data || []
}
export const getShoppPhysical=async()=>{
    const res=await axios.get('/api/mall/home/recommend_small_card/')
    console.log(res.data.data);
    return res.data || []
}
//Skin
export const getShoppSkin=async()=>{
    const res=await axios.get('/api/mall/home/recommend_big_card/')
    return res.data || []
}


export const getShoppScroll=async()=>{
    const res=await axios.get('/api/mall/search/hot_search_keywords/')

    return res.data || []
}

export const getShoppMenu=async()=>{
    const res=await axios.get('/api/mall/goods/category/info/')

    return res.data || []
}
export const getLoginList=async(username:string,password:string)=>{
    const res=await axios.post('/xt/login',{
        username,
        password
    })
    return res.data || []
}